package com.lk.basic.util;

import com.lk.org.domain.Employee;
import com.lk.org.domain.Shop;

public class LoginContext {

    /**
     * 登录成功后调用
     * @param loginUser
     */
    public static void setLoginAdmin(Employee loginUser){
        //暂时不实现--要存放session,redis

    }


    /**
     * 获取登录用户
     * @return
     */
    public static Employee getLoginAdmin(){
        //从session或者redis中获取  现在模拟获取一个用户
        Employee employee = new Employee();
        employee.setId(1L);
        employee.setUsername("admin");

        Shop shop = new Shop();
        shop.setId(55L);
        shop.setName("8");
        employee.setShop(shop);
        return employee;

    }

}